package com.qfedu.hotelssm.controller;

import com.qfedu.hotelssm.service.intf.MenuService;
import com.qfedu.hotelssm.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @author truman
 * @date 2022/9/1
 * @description
 */
@RestController
@RequestMapping("/api/menu/")
public class MenuController {
    @Autowired
    private MenuService service;

    @RequestMapping("menu.do")
    public Map menu(HttpSession session) {
        return service.all(session);
    }
}
